package com.seawaterbt.ssm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

@TableName("DAT_HeatStationData")
@Getter
@Setter
public class ShengDatHeatStationData {

    @TableId("HeatStationID")
    private String heatStationId;

    @TableField("GetTime")
    private Date getTime;

    @TableField("InstantaneousFlow")
    private Double instantaneousFlow;

    @TableField("CumulativeHeat")
    private Double cumulativeHeat;

    @TableField("SupplyTemp")
    private Double supplyTemp;

    @TableField("BackTemp")
    private Double backTemp;

    @TableField("SupplyPre")
    private Double supplyPre;

    @TableField("BackPre")
    private Double backPre;

    @TableField("AddTime")
    private Date addTime;

    public String getHeatStationId() {
        return heatStationId;
    }

    public void setHeatStationId(String heatStationId) {
        this.heatStationId = heatStationId;
    }

    public Date getGetTime() {
        return getTime;
    }

    public void setGetTime(Date getTime) {
        this.getTime = getTime;
    }

    public Double getInstantaneousFlow() {
        return instantaneousFlow;
    }

    public void setInstantaneousFlow(Double instantaneousFlow) {
        this.instantaneousFlow = instantaneousFlow;
    }

    public Double getCumulativeHeat() {
        return cumulativeHeat;
    }

    public void setCumulativeHeat(Double cumulativeHeat) {
        this.cumulativeHeat = cumulativeHeat;
    }

    public Double getSupplyTemp() {
        return supplyTemp;
    }

    public void setSupplyTemp(Double supplyTemp) {
        this.supplyTemp = supplyTemp;
    }

    public Double getBackTemp() {
        return backTemp;
    }

    public void setBackTemp(Double backTemp) {
        this.backTemp = backTemp;
    }

    public Double getSupplyPre() {
        return supplyPre;
    }

    public void setSupplyPre(Double supplyPre) {
        this.supplyPre = supplyPre;
    }

    public Double getBackPre() {
        return backPre;
    }

    public void setBackPre(Double backPre) {
        this.backPre = backPre;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    private static DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @Override
    public String toString() {
        return "ShengDatCrewData{" +
                "heatStationId='" + heatStationId + '\'' +
                ", getTime=" + df.format(getTime) +
                ", instantaneousFlow=" + instantaneousFlow +
                ", cumulativeHeat=" + cumulativeHeat +
                ", supplyTemp=" + supplyTemp +
                ", backTemp=" + backTemp +
                ", supplyPre=" + supplyPre +
                ", backPre=" + backPre +
                ", addTime=" + df.format(addTime) +
                '}';
    }
}
